-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(airflow): retry callback, support ExternalTaskSensor subclasses #8514
feat(airflow): retry callback, support ExternalTaskSensor subclasses #8514
Conversation
@richenc This was a long-standing gap in our Airflow plugin, so thanks for taking a stab at it! We'll be reviewing it soon. |
@hsheth2 I noticed the v2 plugin released recently. I was wondering how that affects my PR. |
@richenc this PR still applies for the v1 plugin and we can merge review/merge it in around v1 if we want. However, the v2 plugin uses the Airflow listener API (instead of the somewhat hacky policy mechanism that v1 uses), so we should be able to detect UP_FOR_RETRY events more reliably with v2. The external sensor changes seem reasonable and are part of common code between v1 and v2, so that logic should be ok to merge regardless |
b3b193a
to
92fb5c5
Compare
@hsheth2 good to hear that the listener API is being used! I think that means it might be possible to emit the data flow runs as dataprocessinstances! I'm going to look into the v2 plugin so I can migrate and contribute to it in the future. I just rebased my branch to fix the conflicts. Please let me know if there is anything else I need to do before this can be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good
Do you have a sense for how we'd implement something similar with the v2 plugin (using the listener API)?
thanks @hsheth2! At the moment, I'm not sure but I was thinking about taking a crack at it once I had some time to test the v2 plugin in our local environment in preparation for migrating. |
… add properties
Closes #6305.
Checklist